                        <div class="jquery_tab">
                                <div class="content_block">
                                    <div class="box-grey frt" style="width:110px;padding:6px">
                                        <a href="/new-relation"
                                           style="text-decoration: none;color: #797878; ">
                                            <strong>Create Relation</strong> </a>
                                    </div>
                                    <?php $flashMessenger = Zend_Controller_Action_HelperBroker::getStaticHelper('FlashMessenger'); ?>

                                    <h2 class="jquery_tab_title">Manage Relations</h2>
                                    <?php if ($flashMessenger->setNamespace('success')->hasMessages()): ?>
                                        <div class="message success">
                                             <?php foreach ($flashMessenger->getMessages() as $msg): ?>
                                                <p><strong>Success!</strong> <?php echo $msg ?> </p>
                                            <?php endforeach; ?>
                                        </div>
                                    <?php endif;?>

                            	<table id="table_fixed" cellspacing="0">
                                      <tr>
                                        <th class="left-border">Relation Name</th>
                                        <th>Options</th>
                                      </tr>

                                      <?php  foreach ($this->relations as $rel): ?>
                                        <tr>
                                            <td class="left-border"><?php echo  $this->Escape($rel->RelationName); ?></td>
                                            <td>
                                                &nbsp;&nbsp;&nbsp;&nbsp;
                                                <a href="<?php echo $this->url(array('controller'=> 'relation', 'action'=> 'edit', 'module'=> 'main', 'id' => $rel->id ), 'edit-relation', true ) ?>" >Edit</a>
                                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                <a href="<?php echo $this->url(array('controller'=> 'relation', 'action'=> 'delete', 'module'=> 'main', 'id' => $rel->id ), 'delete-relation', true ) ?>" >Delete</a>
                                            </td>
                                        </tr>
                                      <?php endforeach;?>
                                    </table>
                            	</div><!--end content_block-->
                            </div>